/****************************************************
          File Name:localtime.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 12 Aug 2014 09:28:53 AM CST
*****************************************************/

#include<stdio.h>
#include<time.h>

int main()
{
    time_t timep;
    struct tm *loc;

    timep=time(NULL);

    loc=localtime(&timep);

    printf("the time (UTC+08,my system time) is %s\n",asctime(loc));

    return 0;
}
